Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. design
    Log in to post

    • UNSOLVED Views - what are the correct rules to use models?
      QML and Qt Quick • model delegate design view choose • • jeanmilost  

      2
      0
      Votes
      2
      Posts
      51
      Views

      @jeanmilost I can't answer all your questions, as I'm not an expert on Qt's Model/View system, what I do know is, that all models have a QAbstractItemModel as base model and that is also the ABI for all views. For that reason alone, you can assign all models to all views. You will however not get a useful representation of all your data in all views. As I understand it, and anyone fell me to correct me here, the other higher level classes of models are only there to make your life easier, as in you do not have to implement all functions/functionalities of the whole AbstractItemModel class
    • SOLVED Designing a custom widget
      General and Desktop • c++ design design pattern • • Daniel_Contro  

      5
      0
      Votes
      5
      Posts
      30
      Views

      @jsulm Ok, thanks a lot for the help
    • UNSOLVED Canvas onPaint in ui.qml
      QML and Qt Quick • qml design ui design • • TMJJ001  

      4
      0
      Votes
      4
      Posts
      193
      Views

      @TMJJ001 hi the canvas content is generated programmatically, i'm not sure you can do it in the Designer
    • UNSOLVED Wie erstelle ich am besten eine Navigation und die Darstellung des ausgewählten Inhalts?
      German • qtcreator design 5.12.1 • • sm-a  

      2
      0
      Votes
      2
      Posts
      425
      Views

      Hallo. Wenn Du ausschließlich Qt Widgets benutzen möchtest, so würde ich vorschlagen, dass Du, z.Bsp., Dein Hauptfenster zwei teilst: Das eine Unterfenster soll dann die wechselnden Ansichten zeigen, und das andere Unterfenster enthält dann Dein TreeWidget. Klickt man dann ein Item des TreeWidgets an, wechselt sich die Ansicht im Nebenfenster.
    • SOLVED Save data from multiple Qt components scattered around multiple QML files
      QML and Qt Quick • qml design data models scope model binding • • ivarec  

      9
      0
      Votes
      9
      Posts
      694
      Views

      I went with the Binding solution in the end :)
    • UNSOLVED Why does QVariant use a union?
      Brainstorm • qvariant design • • Larvae  

      10
      0
      Votes
      10
      Posts
      1863
      Views

      Hi @Larvae, you might get better answers to questions about internal code and design decisions at the Interest mailing list (subscribe first, then post). Qt engineers are active on that list; this forum is mainly used by Qt users who don't necessarily know any internal details.
    • UNSOLVED Create Mobile Apps that Support the Notch and Display Cutouts
      Announcements • android ios mobile design technology • • GTDev  

      1
      2
      Votes
      1
      Posts
      1175
      Views

      No one has replied

    • UNSOLVED Design questions for a simple level editor.
      General and Desktop • design editor design pattern noob level editor • • WetDesertRock  

      1
      0
      Votes
      1
      Posts
      304
      Views

      No one has replied

    • UNSOLVED QtRemoteObject
      General and Desktop • design qtremoteobject • • batcher  

      1
      0
      Votes
      1
      Posts
      401
      Views

      No one has replied

    • QtCreator in Design say "found not working import file:// ... module ... not installed". How did I do ?
      Tools • qml quick design modules qtcreator 4.0.2 • • Watchara Kangkun  

      4
      0
      Votes
      4
      Posts
      2264
      Views

      You have to enable Use QML emulation layer that is built with the selected Qt in the settings, since Qt Creator does ship with Canvas3D. Note that Canvas3D is not officially supported in the designer, though.
    • UNSOLVED Cannot start QML Emulator
      QML and Qt Quick • qml error design control 2 puppet • • Crash22  

      7
      0
      Votes
      7
      Posts
      2557
      Views

      Unplugging the tablet does not help. You have to at least temporarily disable the driver. The issue is described in detail here: https://bugreports.qt.io/browse/QTBUG-47548 You can stop the driver like this: net stop WTabletServicePro And restart the driver with this command: net start WTabletServicePro
    • UNSOLVED Good way to use Qt
      General and Desktop • c++ qt5 design oop • • knowill  

      2
      0
      Votes
      2
      Posts
      580
      Views

      Hi and welcome to devnet, What kind of transformation do you have ing mind ?
    • UNSOLVED Cannot reduce size of main window.
      General and Desktop • designer design design mode • • ronyNS  

      4
      0
      Votes
      4
      Posts
      1294
      Views

      @ronyNS Hi yes, i have such issue with image in QLabel and layouts. Try to clear it and see if its it :) also , just to test, if u make new project, does it allow to scale mainwin in designer?
    • UNSOLVED Android/iOS Best Practices
      Mobile and Embedded • android ios design • • pppgogogo  

      3
      0
      Votes
      3
      Posts
      1132
      Views

      @DRoscoe Thanks so much, I really appreciate you taking time to respond!
    • UNSOLVED How to design a Qt file reader ?
      General and Desktop • qfile file design reader • • dridk  

      9
      0
      Votes
      9
      Posts
      2607
      Views

      @dridk Hello, What I suggested is not compression per se, but a way to encode (meaning represent) base pair data more efficiently. As I noted, this is no way a complete solution, but I think it should give you a starting point. Since adenine is complementary to thymine the first could be encoded as a bit sequence 00 and the other as 11, while cytosine and guanine could be encoded as 01 and 10 respectively. This way you can get the complementary base by only inverting bits. Suppose you have encoded half the strain of DNA, then the complementary strain you get simply by inverting all the bits. Since the base data is only 2 bits fixed size you can use offsets to calculate where that data is exactly located in a long base pair sequence. Suppose you have a sequence of alleles and you know that some gene contains 3 alleles and starts with the 35th allele of the base-pair sequence, then you can access the gene sequence very easily. The gene should start at (35 - 1) * 3 = 102th base pair (or 102 * 2 = 204th bit) and the size is simply 9 base pairs or 18 bits. I just hope my biology is not failing me with the calculations. So if you had the whole sequence mapped in a binary file, to read up the gene you seek out the correct position directly by those offsets: QFile mySequenceFile("dnasequence.dna"); if (!file.open(QFile::ReadOnly)) ; //< You know the drill with handling errors file.seek(25); //< Go to the 25-th byte (200th bit) QByteArray geneSequenceData = file.read(3); //< Read 3 bytes (up to bit 224) // So in the byte array we've read we have the gene we're interested in, and it starts at the 4-th bit and ends at bit 22 // The total number of bits read is 24 The whole point of having a structured binary file is to be able to seek around it without actually reading things. Obviously my example is pretty superficial and it's much better to have special class that represent a base pair sequence, class representing gene offsets and other data you might want to handle. Additionally, you probably'd need some meta-information written in that file (offsets of sequences, genes or other things) so you could locate what you need. This is not possible with text files, especially in a platform independent fashion. Moreover a sequence of 4 base pairs you encode in 4 bytes when you use text files, with the proposed encoding scheme you only need a single byte! Kind regards.
    • UNSOLVED This forum need few improvements
      Qt.io webservices • design website user experience • • Yedd  

      8
      1
      Votes
      8
      Posts
      1586
      Views

      @SGaist I could be missing something, but if we can run some JavaScript on the top of the old forum pages, this is a solved problem. or at least temporarily until we come with something better.
    • Need suggestions to improve the front end?
      QML and Qt Quick • user interface design • • vishnu  

      1
      0
      Votes
      1
      Posts
      402
      Views

      No one has replied

    • Your software deserves a great interface!
      Jobs • qml qtwidgets design • • Martin Zajac  

      4
      0
      Votes
      4
      Posts
      2018
      Views

      Nice! Thanks for sharing :)