CN107291340A - Realize method, computing device and the storage medium of interfacial effect - Google Patents

Realize method, computing device and the storage medium of interfacial effect Download PDF

Info

Publication number
CN107291340A
CN107291340A CN201710445123.XA CN201710445123A CN107291340A CN 107291340 A CN107291340 A CN 107291340A CN 201710445123 A CN201710445123 A CN 201710445123A CN 107291340 A CN107291340 A CN 107291340A
Authority
CN
China
Prior art keywords
controls
project
qpushbutton
qgroupbox
qlabel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710445123.XA
Other languages
Chinese (zh)
Other versions
CN107291340B (en
Inventor
邓建茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pico Technology Co Ltd
Original Assignee
Beijing Pico Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pico Technology Co Ltd filed Critical Beijing Pico Technology Co Ltd
Priority to CN201710445123.XA priority Critical patent/CN107291340B/en
Publication of CN107291340A publication Critical patent/CN107291340A/en
Application granted granted Critical
Publication of CN107291340B publication Critical patent/CN107291340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses method, computing device and the storage medium for realizing interfacial effect.Methods described includes:The project begun a project in response to interface in list is selected, by the QPushbutton control generation selected signal associated with selected project;And in response to the selected signal, the state of the QGroupbox control and/or QLabel control associated with selected project is set to " show ", wherein, the QGroupbox controls arrange that the QLabel controls are arranged adjacent to the QPushbutton controls around the QPushbutton controls.The invention further relates to a kind of computing device and a kind of storage medium.By various embodiments of the present invention, interfacial effect can be simply and easily realized, makes program frame apparent, function is more smooth.

Description

Realize method, computing device and the storage medium of interfacial effect
Technical field
Technical field is realized the present invention relates to interface, and interface is realized based on Qt self-defined controls more particularly to one kind Method, computing device and the storage medium of effect.
Background technology
With the development of VR (Virtual Reality, virtual reality) product, the species of VR equipment is more and more.Pass through VR assistant's software on PC ends, mobile device end or other-end can provide more VR videos in user access server Source and game resource.Game resource generally has multiple posters, usually, and poster list area is designed with VR assistant's software interface To show all posters of game.
The content of the invention
Need to realize the technology for the interfacial effect that the project in bulleted list is selected in VR assistant's software interface. Wherein, the project can be poster picture.
According to an aspect of the present invention there is provided a kind of method that interfacial effect is realized based on Qt self-defined controls, including:
The project begun a project in response to interface in list is selected, by associated with selected project QPushbutton controls produce selected signal;And
In response to the selected signal, the QGroupbox control associated with selected project and/or QLabel are controlled The state of part is set to " show ";
Wherein, the QGroupbox controls are arranged around the QPushbutton controls, and the QLabel controls are neighbouring The QPushbutton controls arrangement.
In one embodiment, will be described in the case where the QPushbutton controls do not produce selected signal The state of QGroupbox controls and/or the QLabel controls is set to " hide ".
In one embodiment, the QGroupbox controls are located at the QPushbutton controls lower floor, and described The size of QGroupbox controls is more than the size of the QPushbutton controls.
In one embodiment, methods described also includes:
In response to the selected signal, the zoomed-in view of selected project is included on the interface.
In one embodiment, the zoomed-in view of selected project is included on the boundary in response to the selected signal Include on face:Responded by making connect () function associated with clicked () signal of the QPushbutton controls The zoomed-in view of the selected project is shown on interface in the clicked () signal.
In one embodiment, methods described also includes:
In response to the selected signal, the color of the QGroupbox controls and/or the QLabel controls is set to The color different from the background color at interface.
In one embodiment, the QLabel controls have the background picture of given shape, wherein in the QLabel The background picture of the given shape is displayed on interface under " display " state of control.
In one embodiment, the project be picture, and the picture be provided as it is associated with the project QPushbutton controls background picture.
In one embodiment, by believing the clicked () of connect () function and the QPushbutton controls Number state associated and that the QGroupbox controls and/or the QLabel controls are set using groove function.
In one embodiment, the interfacial effect is the interfacial effect of VR assistant's software.
According to another aspect of the present invention there is provided a kind of computing device, including:
Processor;
Storage device;And
It is stored on the storage device and can be existed by the computer instruction of the computing device, the computer instruction Cause computing device method as described above during by the computing device.
According to another aspect of the invention there is provided a kind of storage medium, the calculating for being available for computing device is stored thereon with Machine program, the computer program realizes method as described above when being executed by processor.
It was found by the inventors of the present invention that Qt self-defined controls suitably display items can be based in the prior art by being not present The technology for the interfacial effect that project in mesh list is selected.Therefore, the present invention to be realized technical assignment or to be solved Technical problem certainly be it is that those skilled in the art never expect or it is not expected that, therefore the present invention is a kind of new technology Scheme.
, can be with simple and convenient by each embodiment of the interfacial effect implementation method based on Qt self-defined controls of the present invention Realize the selected interfacial effect of the item in interface in ground.Wherein, according to one embodiment, selected project can be shown as The mark of given shape is shown with housing, and/or in the top of selected project., can be with according to another embodiment The zoomed-in view of project (such as poster) is shown on interface.The interfacial effect being achieved in that makes program frame apparent, work( Can be more smooth.
By referring to the drawings to the detailed description of the exemplary embodiment of the present invention, further feature of the invention and its Advantage will be made apparent from.
Brief description of the drawings
The accompanying drawing for being combined in the description and constituting a part for specification shows embodiments of the invention, and even It is used for the principle for explaining the present invention together with its explanation.
Fig. 1 is the signal stream of the method according to an embodiment of the invention that interfacial effect is realized based on Qt self-defined controls Cheng Tu;
Fig. 2 is the schematic layout pattern according to an embodiment of the invention for being used to realize the Qt controls of interfacial effect;
Fig. 3 is the interfacial effect screenshotss realized by interfacial effect implementation method according to an embodiment of the invention Figure;
Fig. 4 is the hardware configuration for realizing the computing device of the interfacial effect implementation method according to various embodiments of the present invention Schematic block diagram.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value otherwise illustrated in these embodiments does not limit this The scope of invention.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention And its any limitation applied or used.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as a part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
Qt is cross-platform C++ graphical user interface applications program development framework.Herein, QPushbutton, QGroupbox and QLabel are Qt controls.Fig. 1 is shown realizes interfacial effect according to the present invention based on Qt self-defined controls Method one embodiment schematic flow diagram.In an embodiment of the present invention, interfacial effect show in response to positioned at A project in bulleted list on interface is selected and the scene of the selected project is highlighted on interface.Such as In embodiment shown in Fig. 1, this method includes:
Step S101:The project begun a project in response to interface in list is selected, by associated with selected project QPushbutton controls produce selected signal;And
Step S102:In response to selected signal, by the QGroupbox control associated with selected project and/or The state of QLabel controls is set to " show ".Alternatively, selected signal is may also respond in step s 102 and will be chosen In the zoomed-in view of project be shown on interface, for example, in the project viewing area being shown in above bulleted list.
Wherein, QGroupbox controls are arranged around QPushbutton controls, and QLabel controls are controlled adjacent to QPushbutton Part is arranged.In one example, QGroupbox controls can be located at the lower floor of QPushbutton controls, and QGroupbox The size of control can be slightly larger than QPushbutton controls (for example, region of the QGroupbox region than QPushbutton is omited Greatly, 3 pixels are respectively had more up and down), during so that the state of proper QGroupbox controls being " display ", it is on interface It is shown as suitably surrounding the frame of QPushbutton controls.In one example, QLabel controls can have specific shape The background picture (such as green triangular shaped picture) of shape, wherein this is specific under " display " state of QLabel controls The background picture of shape is displayed on interface.
Described here " QLabel controls are arranged adjacent to QPushbutton controls " refers to, QLabel controls with Can have any appropriately distance between QPushbutton controls, if can be identified for that when QLabel controls are shown by The project chosen is sundry item without make one to take for mark.
This method can also include:In the case where QPushbutton controls do not produce selected signal, by QGroupbox The state of control and/or QLabel controls is set to " hide ".
In one example, can be by making clicked () signal of connect () function and QPushbutton controls State associated and that QGroupbox controls and/or QLabel controls are set using groove function.Specifically, bulleted list is worked as In project it is selected when, associated QPushbutton controls produce clicked () signal as selected signal, due to Connect () function is associated with the signal, therefore can utilize groove function by QGroupbox controls and/or QLabel controls State be set to " show ".
It is also possible to by make connect () function associated with clicked () signal of QPushbutton controls come The zoomed-in view of selected project is shown on interface in response to produced clicked () signal.
In one example, this method can also include:In response to the selected signal, by the face of QGroupbox controls Color is set to the colors different from the background color at interface, and/or QLabel controls are set to the back of the body at color and interface Scape color is different and with given shape.Wherein, for QGroupbox controls, the color of its frame can be only set;For QLabel controls, can be different from the background color at interface and with given shape by the way that its background picture is set into color Picture is realized.So, when project is selected, the selected project is shown with color different from boundary on interface The frame (correspond to QGroupbox controls) of face background color and/or in its vicinity there is color to be different from interface background color Given shape, so that the sundry item in the selected project and list be distinguished.Alternatively it is also possible in design The color of the frame of QGroupbox controls is just set during arrangement interface, and/or the background picture of QLabel controls is set. For example, can be set by following code:
ui.lable->setStyleSheet("background-image:url(:/PicoHome/Skin/game_ detail_poster_select.png)");
ui.groupBox->setStyleSheet("QGroupBox{border:3px solid#42d4c1}")
In the process described above, project can be picture, such as poster, can be provided as the picture and this The background picture of the associated QPushbutton controls of mesh.
For realizing that the interface of interfacial effect as described above can be created in the following manner.
First, self-defined control class is created in Qt engineerings.For example, Qt engineerings include the life for creating self-defined control class Order or function menu, by calling the order or function menu, can create self-defined control class.
Then, QWidget controls are added in created self-defined control class.Wherein, QWidget controls define institute The space of the self-defined control class of establishment.
Then, QPushbutton controls and QGroupbox controls and/or QLabel controls are placed into QWidget controls In part.
QPushbutton controls are configured to it is associated with a project in bulleted list, QPushbutton controls Geometric parameter is configured as essentially identical with the geometric parameter of the project.In one example, when the project in list When being chosen on interface by user, the button of correspondence QPushbutton controls is caused to be selected, so as to produce this Clicked () signal (" selected signal ") of QPushbutton controls.
Herein, " be located at list in project/poster on interface be selected " refer to user using mouse, finger or Project/the poster on interface is clicked on or streaked to other touching devices or other input units.Pass through it is appreciated that existing His device otherwise represents other scenes of " choosing ".
QGroupbox controls can be placed into QWidget controls without placing QLabel controls, or by QLabel Control is placed into QWidget controls without placing QGroupbox controls, or can also both be placed.
In one example, QPushbutton controls, QGroupbox controls and/or QLabel controls can be existed Layout as shown in Figure 2 is arranged in QWidget controls.QGroupbox controls can surround QPushbutton controls arrangement, QLabel controls can neighbouring QPushbutton controls arrangement.Wherein, QGroupbox controls are located under QPushbutton controls The size of layer and QGroupbox controls can be slightly larger than QPushbutton controls (for example, QGroupbox region ratio QPushbutton region is bigger, and 3 pixels are respectively had more up and down) so that when choosing in response to QPushbutton When the state of signal QGroupbox controls is changed into " display (show) ", QGroupbox controls be shown as on interface with The frame of the associated project of QPushbutton controls, to represent that its project framed is selected.QLabel controls can by with It is set to associated with the background picture with given shape so that when the selected signal QLabel controls in response to QPushbutton When the state of part is changed into " display (show) ", QLabel controls be shown adjacent on interface it is selected it is project, have Background picture of given shape, to represent that its neighbouring project is selected.The given shape can be triangle, pros Shape, rhombus, rectangle, circle, ellipse or other any shapes.
In the illustrated example shown in fig. 2, QLabel controls are shown at the top position placed in the middle of QPushbutton controls Put.It is understood that QLabel controls can also be located at the top position to the left or to the right of QPushbutton controls, or Person is located at any suitable position of the lower section, the left side or the right of QPushbutton controls.In one example, when on interface Project viewing area be located at bulleted list above when, QLabel controls can be arranged in the top of QPushbutton controls, example Position such as between project viewing area and bulleted list;When project viewing area is located at below bulleted list, then by QLabel Control is arranged in the lower section of QPushbutton controls;When project viewing area is located at the left/right side of bulleted list, then will QLabel controls are arranged in the left/right side of QPushbutton controls.In one example, QLabel controls are shown as triangle Shape, and vertex of a triangle is just to project viewing area, the side relative with the summit close to the project being selected in bulleted list, And the zoomed-in view of selected project is shown in project viewing area.
In one example, QPushbutton controls and QGroupbox controls and/or QLabel controls are configured as So that:
It is selected in response to project, the QGroupbox control associated with selected project and/or QLabel controls State is changed into " display (show) ", now, and QGroupbox controls are shown as on interface around the side of selected project Frame, and/or QLabel controls are shown near the project the specific of (such as adjacent above it) on interface Shape, to represent that the project near that the frame the is framed and/or given shape is selected.
In this example, selected signal is not produced in QPushbutton (i.e. its associated corresponding project is not selected) In the case of, associated QGroupbox controls and/or the state of QLabel controls are " hiding (hide) ", now at interface On do not show QGroupbox controls and/or QLabel controls.
In order to further highlight selected project on interface, in one example, in response to selected signal, phase The QGroupbox controls and/or QLabel controls of association color shown on interface are arranged to the background face with interface Color is different.For example, interface is black, QGroupbox controls and/or QLabel controls are shown as green, by selected middle term Mesh is shown as having green frame and/or nearby has viridescent given shape.
In one example, QPushbutton controls can also be configured so that:In response to the QPushbutton The selected signal of control, associated respective items purpose zoomed-in view is automatically loaded the project viewing area to interface.So, when When project in bulleted list is selected, the zoomed-in view of selected project is shown in the project viewing area on interface, simultaneously Protruded in bulleted list area with frame and given shape selected project with it is clear and definite its with project viewing area be shown Zoomed-in view corresponding relation.
In the case of including multiple projects in bulleted list, Qt created above can be repeated for each project self-defined The process of control class, to set up corresponding self-defined control class for each project and to be defined with Qt controls to it.
Herein, the Qt controls progress configuration to such as QPushbutton, QGroupbox and QLabel refers to, uses Instruction, order, function menu, code for being write as with programming language etc. further define Qt controls.For example, can pass through Connect () function is associated with clicked () signal of QPushbutton controls and is realized using groove function The change of the state of QGroupbox controls and/or QLabel controls.For example, can by connect () function with It is selected and locate that clicked () signal of QPushbutton controls is associated button in response to QPushbutton controls Manage the automatic loading of respective items purpose zoomed-in view.
In one example, the project is poster, and bulleted list is the list for including multiple poster small-views, and project shows It is poster viewing area to show area.It is available for being chosen from list it is understood that the project can be any outside poster And the project of its zoomed-in view can be shown in project viewing area.
Give and configured in the case where project is poster by connect () function in an illustrative manner below QPushbutton, QGroupbox and QLabel control are to realize the code of the selected interfacial effect of the project in bulleted list Example:
In the above example, when choosing the poster on interface in poster list, what the poster was associated QPushButton produces clicked () signal, so that in the groove function of response QPushButton clicked () signal Portion handles the selected state of small poster:QLable state is set to show (display), also QGroupBox state be set For show (display), and handle the display program in big poster area.When poster is unselected, unselected state is set:Will QLable state is set to hide (hiding), and QGroupBox state is also configured as into hide (hiding).By setting Whether QLable and QGroupBox state chooses state complete poster.This completes based on Qt self-defined controls Interfacial effect realize.Fig. 3 shows an illustrative screenshot figure of the interfacial effect being achieved in that.
Furthermore it is possible to define suitable initialization function to the Qt self-defined controls so that in initialization, can pass through The display size that ginseng flexibly controls poster is passed, to meet design requirement, makes interface more attractive in appearance.
Above each method embodiment can be used for the interface effect of VR assistant's software on PC ends, mobile terminal or other-end etc. Fruit shows.It is understood that the software interface effect that they may be alternatively used for other field is realized.
Above each method embodiment can be carried out on the computing device.In one embodiment, the computing device includes:
Processor;
Storage device;And
The computer instruction that on the storage means and can be executed by processor is stored, the computer instruction is by processor Cause computing device each method embodiment as described above during execution.
Fig. 4 shows the hardware configuration composition schematic block diagram of such computing device.As shown in figure 4, computing device 300 is wrapped Include processor 3010, memory 3020, interface arrangement 3030, communicator 3040, display device 3050, input unit 3060, Loudspeaker 3070, microphone 3080, etc..
Memory 3020 is used for store instruction, and the instruction is operated for control processor 3010, and the operation causes Implement each method embodiment as described above that interfacial effect is realized based on Qt self-defined controls.
Processor 3010 is such as can be central processor CPU, Micro-processor MCV or distributed treatment system System.Memory 3020 is for example deposited including ROM (read-only storage), RAM (random access memory), the non-volatile of such as hard disk Reservoir etc..Interface arrangement 3030 is such as including USB interface, earphone interface.Communicator 3040 can for example carry out it is wired or Radio communication.Display device 3050 is, for example, LCDs, touch display screen etc..Input unit 3060 can for example include touching Touch screen, keyboard etc..User can pass through loudspeaker 3070 and the inputting/outputting voice information of microphone 3080.
Computing device shown in Fig. 4 is only explanatory, and is never intended to the limitation present invention, its application or uses On the way.Although it will be appreciated by those skilled in the art that figure 4 illustrates multiple parts, the present invention can be only related to Part components therein.Those skilled in the art can instruct according to presently disclosed conceptual design, and how instruction is controlled It is techniques well known that processor processed, which carries out operation, therefore is not described in detail herein.
Above each method embodiment can also in the form of a computer program be stored on storage medium and be distributed.Cause This, according to another aspect of the present invention, also provides a kind of storage medium, is stored thereon with the computer journey for being available for computing device Sequence, the computer program realizes each method embodiment as described above when being executed by processor.
The storage medium can be any tangible device that can be kept and store and the instruction that equipment is used is performed by instruction. For example, it can be-- but is not limited to-- storage device electric, magnetic storage apparatus, light storage device, electromagnetism storage device, half Conductor storage device or above-mentioned any appropriate combination.More specifically example (non exhaustive list) bag of storage medium Include:Portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), static RAM (SRAM), Portable compressed disk read-only storage (CD-ROM), number Word versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, the punch card for being for example stored thereon with instruction or groove convex Play structure and above-mentioned any appropriate combination.Storage medium used herein above is not construed as instantaneous signal in itself, all Such as electromagnetic wave of radio wave or other Free propagations, the electromagnetic wave propagated by waveguide or other transmission mediums are (for example, logical Cross the light pulse of fiber optic cables) or the electric signal that is transmitted by electric wire.
Computer program/computer instruction as described herein can download to each meter from computer-readable recording medium Calculation/processing equipment, or outer computer is downloaded to by network, such as internet, LAN, wide area network and/or wireless network Or External memory equipment.Network can include copper transmission cable, optical fiber transmit, be wirelessly transferred, router, fire wall, interchanger, Gateway computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment connect from network Computer-readable program instructions are received, and forward the computer-readable program instructions, for being stored in each calculating/processing equipment Computer-readable recording medium in.
For perform the computer program instructions that operate of the present invention can be assembly instruction, instruction set architecture (ISA) instruction, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages Source code or object code that any combination is write, programming language of the programming language including object-oriented-such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can perform fully on the user computer, partly perform on the user computer, as one solely Vertical software kit is performed, part is performed or completely in remote computer on the remote computer on the user computer for part Or performed on server.In the situation of remote computer is related to, remote computer can be by network-bag of any kind LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer is (such as sharp With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the present invention Face.
Referring herein to method according to embodiments of the present invention, device (system) and computer program product flow chart and/ Or block diagram describes various aspects of the invention.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/ Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas The processor of processing unit, so as to produce a kind of machine so that these instructions are passing through computer or other programmable datas During the computing device of processing unit, work(specified in one or more of implementation process figure and/or block diagram square frame is generated The device of energy/action.Can also be the storage of these computer-readable program instructions in a computer-readable storage medium, these refer to Order causes computer, programmable data processing unit and/or other equipment to work in a specific way, so that, be stored with instruction Computer-readable medium then includes a manufacture, and it is included in one or more of implementation process figure and/or block diagram square frame The instruction of the various aspects of defined function/action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce Raw computer implemented process, so that performed on computer, other programmable data processing units or miscellaneous equipment Instruct function/action specified in one or more of implementation process figure and/or block diagram square frame.
Flow chart and block diagram in accompanying drawing show system, method and the computer journey of multiple embodiments according to the present invention Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation One module of table, program segment or a part for instruction, the module, program segment or a part for instruction are used comprising one or more In the executable instruction for realizing defined logic function.In some realizations as replacement, the function of being marked in square frame Can be with different from the order marked in accompanying drawing generation.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or The combination of each square frame in flow chart and the square frame in block diagram and/or flow chart, can use function as defined in execution or dynamic The special hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.It is right For those skilled in the art it is well known that, realized by hardware mode, realized by software mode and by software and It is all of equal value that the mode of combination of hardware, which is realized,.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to. But make it will be clear for those skilled in the art that the various embodiments described above can be used alone or be combined with each other as needed With.In addition, for device embodiment, because it is corresponding with embodiment of the method, so describe fairly simple, it is related Part referring to the corresponding part of embodiment of the method explanation.System embodiment described above be only it is schematical, It is not physically separate that the module wherein illustrated as separating component, which can be or may also be,.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
Although some specific embodiments of the present invention are described in detail by example, the skill of this area Art personnel are it should be understood that example above is merely to illustrate, the scope being not intended to be limiting of the invention.The skill of this area Art personnel to above example it should be understood that can modify without departing from the scope of the invention.The model of the present invention Enclose and be defined by the following claims.

Claims (10)

1. a kind of method that interfacial effect is realized based on Qt self-defined controls, including:
The project begun a project in response to interface in list is selected, by the QPushbutton control associated with selected project Part produces selected signal;And
In response to the selected signal, by the QGroupbox control and/or QLabel control associated with selected project State is set to " show ";
Wherein, the QGroupbox controls are arranged around the QPushbutton controls, and the QLabel controls are neighbouring described QPushbutton controls are arranged.
2. according to the method described in claim 1, wherein, do not produce the situation of selected signal in the QPushbutton controls Under, the state of the QGroupbox controls and/or the QLabel controls is set to " hide ".
3. method according to claim 1, wherein, the QGroupbox controls are located under the QPushbutton controls Layer, and size of the size more than the QPushbutton controls of the QGroupbox controls.
4. according to the method described in claim 1, in addition to:
In response to the selected signal, the zoomed-in view of selected project is included on the interface, wherein, in response to institute Stating selected signal includes the zoomed-in view of selected project on the interface to include:By make connect () function with Clicked () signal of the QPushbutton controls is associated will be selected in response to the clicked () signal The zoomed-in view of the project be shown on interface.
5. according to the method described in claim 1, in addition to:
In response to the selected signal, the color of the QGroupbox controls and/or the QLabel controls is set to and boundary The different color of the background color in face.
6. method according to claim 5, wherein, the QLabel controls have the background picture of given shape, wherein The background picture of the given shape is displayed on interface under " display " state of the QLabel controls.
7. the method according to any one of claim 1-6, wherein, the project is picture, and the picture is set Put the background picture as the QPushbutton control associated with the project.
8. the method according to any one of claim 1-6, wherein, by make connect () function with it is described Clicked () signals of QPushbutton controls it is associated and set using groove function the QGroupbox controls and/or The state of the QLabel controls.
9. a kind of computing device, including:
Processor;
Storage device;And
It is stored on the storage device and can be by the computer instruction of the computing device, the computer instruction is by institute So that method of the computing device as any one of claim 1-8 when stating computing device.
10. a kind of storage medium, is stored thereon with the computer program for being available for computing device, the computer program is being located Manage the method realized when device is performed as any one of claim 1-8.
CN201710445123.XA 2017-06-12 2017-06-12 Method for realizing interface effect, computing equipment and storage medium Active CN107291340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710445123.XA CN107291340B (en) 2017-06-12 2017-06-12 Method for realizing interface effect, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710445123.XA CN107291340B (en) 2017-06-12 2017-06-12 Method for realizing interface effect, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107291340A true CN107291340A (en) 2017-10-24
CN107291340B CN107291340B (en) 2020-10-09

Family

ID=60096548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710445123.XA Active CN107291340B (en) 2017-06-12 2017-06-12 Method for realizing interface effect, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107291340B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984239A (en) * 2018-05-29 2018-12-11 北京五八信息技术有限公司 Select processing method, device, equipment and the storage medium of control
CN111367597A (en) * 2018-12-26 2020-07-03 杭州海康威视系统技术有限公司 Color switching method and device and electronic equipment
CN112732258A (en) * 2021-01-11 2021-04-30 中国船舶重工集团公司第七0七研究所 Dynamic switch button software implementation method based on state machine
CN113723614A (en) * 2021-09-01 2021-11-30 北京百度网讯科技有限公司 Method, apparatus, device and medium for assisting in designing quantum circuits

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483760A (en) * 2009-08-31 2012-05-30 微软公司 Visual search and three-dimensional results
CN102541434A (en) * 2006-09-06 2012-07-04 苹果公司 Deletion gestures on a portable multifunction device
CN102981861A (en) * 2012-12-12 2013-03-20 上海航天测控通信研究所 Using method of custom control based on Qt
CN106815018A (en) * 2016-12-27 2017-06-09 国电南瑞科技股份有限公司 Tramcar comprehensive operation dispatches the integral design method of system man-machine interface
US20170344196A1 (en) * 2016-05-31 2017-11-30 Kyocera Document Solutions Inc. User Interface for Remote Management of Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541434A (en) * 2006-09-06 2012-07-04 苹果公司 Deletion gestures on a portable multifunction device
CN102483760A (en) * 2009-08-31 2012-05-30 微软公司 Visual search and three-dimensional results
CN102981861A (en) * 2012-12-12 2013-03-20 上海航天测控通信研究所 Using method of custom control based on Qt
US20170344196A1 (en) * 2016-05-31 2017-11-30 Kyocera Document Solutions Inc. User Interface for Remote Management of Device
CN106815018A (en) * 2016-12-27 2017-06-09 国电南瑞科技股份有限公司 Tramcar comprehensive operation dispatches the integral design method of system man-machine interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TOTO1297488504: ""QLabel,QPushButton,QLineEdit,QComboBox,QCheckBox,QRadioButton,QTextEdit,QTextBrower,QGroupBox,QSL"", 《HTTP://BLOG.CSDN.NET/TOTOTUZUOQUAN/ARTICLE/DETAILS/41897973》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984239A (en) * 2018-05-29 2018-12-11 北京五八信息技术有限公司 Select processing method, device, equipment and the storage medium of control
CN108984239B (en) * 2018-05-29 2021-07-20 北京五八信息技术有限公司 Processing method, device and equipment for selecting control and storage medium
CN111367597A (en) * 2018-12-26 2020-07-03 杭州海康威视系统技术有限公司 Color switching method and device and electronic equipment
CN112732258A (en) * 2021-01-11 2021-04-30 中国船舶重工集团公司第七0七研究所 Dynamic switch button software implementation method based on state machine
CN113723614A (en) * 2021-09-01 2021-11-30 北京百度网讯科技有限公司 Method, apparatus, device and medium for assisting in designing quantum circuits

Also Published As

Publication number Publication date
CN107291340B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US10078325B2 (en) Systems and methods for designing programmable parts for models and optimizing 3D printing
CN107291340A (en) Realize method, computing device and the storage medium of interfacial effect
US10846336B2 (en) Authoring tools for synthesizing hybrid slide-canvas presentations
US9508179B2 (en) Flexible 3-D character rigging development architecture
US20200126308A1 (en) Optimizing virtual data views using voice commands and defined perspectives
KR101530634B1 (en) An apparatus and method for authoring experience-based learning content
CN106033333A (en) A visual augmented reality scene making system and method
US9508178B2 (en) Flexible 3-D character rigging blocks with interface obligations
US20100231590A1 (en) Creating and modifying 3d object textures
CN108260018A (en) Full frame setting method, equipment and the mobile equipment of video web page
CN107038738A (en) Object is shown using modified rendering parameter
CN107122990A (en) Using recommendation method, client, server and system
CN107302694B (en) Method, equipment and the virtual reality device of scene are presented by virtual reality device
Brunschwig et al. Towards domain-specific modelling environments based on augmented reality
CN106951067A (en) The generation method and equipment of a kind of virtual reality scenario
WO2016084061A1 (en) Platform for developing immersive reality-virtuality continuum-based environment and methods thereof
US11409402B1 (en) Virtual reality user interface communications and feedback
CN109271085A (en) Image display method, device and electronic equipment
US10193959B2 (en) Graphical interface for editing an interactive dynamic illustration
US9940757B2 (en) Modifying a simulated character by direct manipulation
CN107959845A (en) The method, apparatus of view data transmission, client terminal device and wear display device
CN112121437A (en) Movement control method, device, medium and electronic equipment for target object
Hasan et al. Smart virtual dental learning environment
CN106681498A (en) Implement method and device of making virtual reality scene directly facing user and virtual reality equipment
Schwajda et al. Transforming graph data visualisations from 2D displays into augmented reality 3D space: A quantitative study

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant