Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Hiding the System Menu Icon of QMdiSubWindow

    5
    0 Votes
    5 Posts
    6k Views
    T
    If to use the null icon then the standard Qt icon will be set on the QMdiSubWindow. Author in opposite wants to hide it.
  • 'signal slot' v/s direct call

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    Better is the one which suits you more in a given situation. With signals, you can connect a slot on both C++ and QML side, with Q_INVOKABLE you are "tied" to C++. Both uses are, IMO, needed (at least I use them...).
  • [Solved]QString changing value

    11
    0 Votes
    11 Posts
    8k Views
    T
    Thanks for the remainder of the [at] function: used [] instead and it works. Must be better to read the docs. //T
  • Direct base ‘QObject’ inaccessible in ‘myClass’ due to ambiguity

    5
    0 Votes
    5 Posts
    20k Views
    M
    Inheriting QObject is not necessary, QThread already is one and provides all it's functionality. Simply change it to @ class myClass : public QThread { Q_OBJECT public: ... @ [EDIT: code formatting, Volker]
  • Elements of constructor get deleted by call from another class

    6
    0 Votes
    6 Posts
    3k Views
    L
    [quote author="basil_fawlty" date="1328568251"]So you are suggesting to use getters. I have never come across using getters in c++. It looks rather complicated. Maybe you could tell me a bit more how to create a getter.[/quote] It is nothing special. Just make your members private instead of public and add methods to get and set the value - like you did in your previous post. Your code works fine (apart from some slips of the pen in A #1 and B #17). glVertex3f() is called with the values specified in A::A(). So your error is either in the way you set up your OpenGL viewport or in code not shown here.
  • Autoadjusting a window by checking / unchecking a checkbox

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [solved]Qt4.7 to Qt4.8 meet problems, Help!

    6
    0 Votes
    6 Posts
    6k Views
    G
    please click the edit button under the first post and add a [solved] to the topic. Thanks.
  • [SOLVED] Qt GUI in VST plug-in - clicking menu bar crashes the host

    2
    0 Votes
    2 Posts
    3k Views
    V
    The problem disappeared when I changed static link to framework link and compiled customized Qt frameworks.
  • QTreeWidget - changing the current view when adding/removing items

    2
    0 Votes
    2 Posts
    2k Views
    G
    Hi, without seeing what you exactly do ( by showing some coe) it is hard to say. In general, if you have a model and a view and you insert an item, AFAIK this works.
  • Qt QTextBrowser How to capture text and change its cursor

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Qt Phonon Media Source crashes

    11
    0 Votes
    11 Posts
    4k Views
    D
    I compiled the Qt4.8 from sources with dbus disabled and now it's working....well, not 100% yet. but I'll open another topic because it's other problem.
  • Increase the size of the box in a form to fit the text

    4
    0 Votes
    4 Posts
    2k Views
    K
    Hi, I need a little help with my code. I am trying to put scrollbars on my code. It is a form that i would like to be in a groupbox and the groupbox in a qvboxlayout. @ QVBoxLayout* _layout3; QFormLayout* layout; QScrollArea *scrollArea = new QScrollArea(this); scrollArea->setWidgetResizable(true); QGroupBox *groupBox = new QGroupBox(scrollArea); QWidget *baseArea = new QWidget(); baseArea->setLayout(_layout3); scrollArea->setWidget(baseArea); while(!patients3.isEmpty()) { QMap<QString,QString> patient = patients3.takeFirst(); if (patient["id"]==itemId) { QLineEdit *MyLineEdit = new QLineEdit(patient["id"]); layout->addRow("ID",MyLineEdit); layout->addRow("Surname", new QLineEdit(patient["surname"])); layout->addRow("Name", new QLineEdit(patient["name"])); } groupBox->setLayout(layout); scrollArea->widget()->setLayout(_layout3); this->_layout3->addWidget(groupBox); }@
  • Abnormal termination when using OpenCV's function

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Stack smashing problem in readyRead() signal

    5
    0 Votes
    5 Posts
    3k Views
    S
    [quote author="Tobias Hunger" date="1328605587"]qt_metacall just shows that it was triggered via a signal/slot connection. You will need to dig deeper.[/quote] OK ... this is call stack: !http://s2.picofile.com/file/7285959886/snapshot12.png(Call stack)!
  • Qlibrary on C++ DLL

    7
    0 Votes
    7 Posts
    6k Views
    G
    yes: [quote author="Franzk" date="1328548005"]The sanest way to work around this I think is to wrap the C++ dll in a C interface dll (using msvc express). Then you can use gcc to (dynamically) link against that. C linkage is defined, unlike C++. It's usually the easiest if the vendor doesn't supply mingw builds (like Qt does).[/quote] this was my first solution, then I got enough budget to re-implement the stuff, so everything now is MSVC... because of the difference between GCC and MSVC, there is no other way then to warp the DLL (many tutorials on the web on this). or go MSVC/GCC all the way.
  • Serialized Files on disk?

    6
    0 Votes
    6 Posts
    2k Views
    J
    This is, what I expected. Thank you. As the program shall be used by other people, I cannot force them, to use SSD. But this shall be their problem :-p
  • Don't clear QWidget on paintEvent.

    3
    0 Votes
    3 Posts
    5k Views
    G
    Thanks, that worked
  • QDoubleValidator not working as expected on QLineEdit

    4
    0 Votes
    4 Posts
    6k Views
    G
    999 returns the Intermediate state, you still can make that number acceptable by inserting a decimal point somewhere.
  • QTableWidget column max size and unclickable

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Bug in QSyntaxHighlighter?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied