Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
430 Topics 3.2k Posts
  • How would you like to learn Qt?

    Pinned
    23
    4 Votes
    23 Posts
    5k Views
    A

    @Giridhar Two comments- QT examples are as received
    from some comments on forum " very basic ".
    That is OK , but lack of function description , lack of description of passed parameters to the function,
    and overall lack of "comments" eliminates "examples" as a learning resource.
    ( as a poorest example - error processing in non existent in examples -
    I have been told "it is not basic " to process errors )

    Same goes for using forum as a learning resource.

    The forum unadvertised purpose is to resolve coding issues.
    There are some very knowledgeable contributors doing so, but they are a minority.
    So far I have not found many technical forums as a beneficial learning resource - most
    "how do I ..." receive reply "Google it ".

    As far as "doing a survey " - that is your choice to "get up the speed " in your job ,
    I would suggest to skim the forum, it may also help.

    Good luck
    Cheers

  • avoiding the use of hard-coded strings

    Unsolved
    7
    0 Votes
    7 Posts
    62 Views
    Christian EhrlicherC

    @mzimmers said in avoiding the use of hard-coded strings:

    The goal would be to have no hard-coded strings in my code; they'd all reside in some file that could be altered by a technical writer or someone else.

    That's what translation files are made for...

  • How to track debug process?

    Unsolved
    2
    0 Votes
    2 Posts
    88 Views
    Axel SpoerlA

    @AnneRanch said in How to track debug process?:

    should this top level window be a main application object or be as another child mdiArea subwindow?

    With the context provided, it is not possible to answer this question, or even brainstorm about it.
    It's unclear, how this question relates to the headline of your post.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • passing lists of data to a Component

    Solved
    13
    0 Votes
    13 Posts
    307 Views
    mzimmersM

    @GrecKo yeah, this is a weird use case. I actually do want a list, just not a list in the Qt model/view/delegate sense. Ideally, I'd like to create a list (array/vector/whatever) of the properties I want to display, and pass it into a universal component for display, but creating and using that structure seems to be a bit out of reach for JS/QML/me. It's OK; this approach is working, if a bit inelegant.

  • 0 Votes
    2 Posts
    125 Views
    mzimmersM

    @UlyssesZhan it's hard to say for sure, but I'd speculate that the Qt apps you mention set their own cursor properties rather than use the default settings in in gnome (or gnome-tweaks).

    Do you have the source code for these Qt apps?

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    2 Views
  • I’d like to suggest an improvement to the Fonts dialog

    Unsolved
    4
    0 Votes
    4 Posts
    185 Views
    TomZT

    @Sarreq-Teryx as an aside.

    KDE is still on Qt5 and are slowly moving over to Qt6 today. The various features your mockup requires are only available in the latest Qt6, so you're probably asking a bit early. Like asking about pretty wallpaper while the foundation is just drying.

  • has anyone ever bent a (QML) RangeSlider?

    Unsolved
    4
    0 Votes
    4 Posts
    198 Views
    mzimmersM

    @J-Hilk I'm familiar with the marketplace app CircularSlider, and actually do use it for a different purpose in my app. It's a great product, but it's somewhat limited in its customization potential, so I don't think that adding a 2nd handle is a trivial undertaking.

    I've experimented with overlaying 2 CircularSliders, but the issue there is how to give control to both handles.

    @Mesrine I'll take another look at the customization options, though I don't know how the handles will track movement along a curved background. And, I may eventually take you up on your offer, though for now I'd like to continue exploring all options for this.

  • division of labor between QML and C++

    Solved
    9
    0 Votes
    9 Posts
    387 Views
    mzimmersM

    Just to close this topic out, here's what I ended up doing (posted elsewhere as well):

    // will need one of these for each subclass void EquipmentModel::sendPatchRequest(const Vsp &equipment) { sendBaseRequest(equipment); } void EquipmentModel::sendBaseRequest(const Equipment &equipment) { ... // the line below will call the override function // for the appropriate subclass. equipment.addPatchFields(listEntry, qjo, rolesToKeys);

    Not super elegant, but it works. Thanks to all for the suggestions.

  • to subclass or not to subclass...

    Solved
    6
    0 Votes
    6 Posts
    224 Views
    mzimmersM

    Just to close this out, I'm pursuing the subclass approach to this. Thanks for the suggestions.

  • QEventLoop + QNetworkRequest = dead lock

    Solved
    7
    0 Votes
    7 Posts
    322 Views
    A

    So I simply needed handle one more signal:

    QObject::connect(reply, &QNetworkReply::errorOccurred, &loop, &QEventLoop::quit);
  • creating lib.a file from the current project

    Unsolved
    4
    0 Votes
    4 Posts
    214 Views
    V

    @jsulm

    Hi,

    I have update the project - ".pro" file and it working and building the project and I am adding the dependence for all the connect project files.

    Thanks

  • JavaScript references in QML

    Solved
    3
    0 Votes
    3 Posts
    231 Views
    mzimmersM

    Fixed it -- I added a bool to my parent property to tell me whether this button belongs to to the start or end panel, and I check that bool in my callback.

    Button { id: action buttonText: actionButtonLabel onClicked: { stackView.clear() stackView.push( actionComponent, { "listModel": scheduleActionPanel.actionModel, "listIndex": isStartPanel ? newSchedule.startAction : newSchedule.endAction, "buttonGroup": startStopGroup, "titleText": scheduleActionPanel.actionTitle, "callback": ((i) => { if (isStartPanel) { newSchedule.startAction = i } else { newSchedule.endAction = i } } ) } ) } }

    If necessary, the bool could be replaced by an int, and the callback logic made more elaborate.

  • Changing ABI doesn't modify effective qmake call

    Unsolved
    3
    1 Votes
    3 Posts
    476 Views
    JKSHJ

    Hi @Bradyok, and welcome!

    Yes, it's a bug in Qt Creator 11.0.2: https://bugreports.qt.io/browse/QTCREATORBUG-29506 It will be fixed in v11.0.3.

    In the meantime, you can install and use v11.0.1: https://download.qt.io/official_releases/qtcreator/11.0/11.0.1/ or use @S_M_R's workaround

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Rewriting Qt in Rust

    Unsolved
    52
    0 Votes
    52 Posts
    12k Views
    JoeCFDJ

    @Pete-Carter Interesting. Qt was started in 1991.

  • Qt for thin GUI client

    Unsolved
    8
    0 Votes
    8 Posts
    408 Views
    V

    @SimonSchroeder Thanks so much for the suggestions everyone, I truly value the input from others that are most definitely more talented than myself.

  • 0 Votes
    3 Posts
    176 Views
    jsulmJ

    @Podugu You should also check Linux logs (dmesg for example). It really looks like your desktop session is terminated for some reason (I guess something is crashing).
    What graphics hardware and driver do you use?