跳到內容
  • 143k 主題
    719k 貼文
    B
    It depends how different your delegates need to be. DelegateChoice is good for cases where you need fundamentally different delegates depending on the role etc. If it is just some small variations in appearance that you need, such as a different colour of something, you might just be able to code such variation directly in a single delegate. Note that in Qt 6 TableView things like index, row, column as well as the role values are exposed to the delegate directly as properties. As a trivial example of what I mean about coding the logic directly in the delegate: delegate: Rectangle { ... color: column % 2 ? "red" : "blue" }
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k 主題
    23k 貼文
    FeRDNYCF
    @Pedro said in Forum Updated NodeBB v4.3 + New features: Profile View Now you get a profilecard snippet by hovering over a user's name/picture. * Only if logged in. (Which probably makes sense, but I just thought I'd point it out. ....After logging in to get the feature working.)
  • Everything related to designing and design tools

    129 391
    129 主題
    391 貼文
    J
    In QT Design Studio, Tab Buttons are mostly for navigation within the UI, but each tab doesn’t automatically hide other content. Usually, a StackView or Loader is needed to switch visible content depending on the active tab.
  • Everything related to the QA Tools

    81 219
    81 主題
    219 貼文
    H
    @IamSumit can you reproduce the issue and share the Support Information logs. Please refer to the following Knowledge Base Article regarding how to obtain the Support Information is https://qatools.knowledgebase.qt.io/misc/collecting-support-info/collecting-support-information-linux-mac-windows/
  • Everything related to learning Qt.

    388 2k
    388 主題
    2k 貼文
    KH-219DesignK
    LGTM. I just compared it to my checklist for CMake best practices (which you can read here), and I applaud you for: using subdirectories using PRIVATE (to limit scope) using functions that begin with target_ (in place of ancient/legacy habits of setting various options in a more global way)
  • 2k 主題
    13k 貼文
    Kent-DorfmanK
    I do a lot of python/pyqt database access using psycopg2 for PostgreSQL. It's so much easier to prototype these kinds of ideas in a language like python, and if needed then port it to c++, but truth be told, most of the time the python app is just works as is so no need to rewrite in c++. For something as simple as you are alluding to, the hard core OO models using DAO/DTO are probably overkill. Also, when dealing qith SQL queries it's "nice" to work in a language that is NOT strongly typed. Sorry if this is a round-about way to respond. Your path has merit in the realm of intellectual curiosity, but if you want it done quickly then python is a better option, and you can still wrap it in a Qt GUI. Yikes! Didn't notice OP was 9 months ago...
  • 4k 主題
    18k 貼文
    JonBJ
    @Max connect(obj1, &MyObject::mySignal , this, [=]( int arg1 ){ qDebug() << arg1; });
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k 主題
    10k 貼文
    SGaistS
    Hi, I think you can use https://forum.qt.io/category/5/qt-io-webservices category for this type of question (moved there by the way). Are these in your "unread" section ? Are they marked as you following them ?