Navigation

    Qt Forum

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

    • SOLVED automatic formatting of try-catch
      Tools • creator editor autoformat • • dave2  

      4
      0
      Votes
      4
      Posts
      225
      Views

      @aha_1980 This is exactly, not almost, what I was looking for. Thanks a lot!
    • SOLVED Editor created by QStyledItemDelegate is not inheriting container width
      General and Desktop • delegate qstyleditemdele editor • • Colin James  

      2
      1
      Votes
      2
      Posts
      281
      Views

      I eventually managed to fix this by implementing updateEditorGeometry and calling editor->setGeometry(option.rect);. I should have looked into base class member functions sooner!
    • UNSOLVED Add custom text wrap logic to QPlainTextEdit
      General and Desktop • widget qplaintextedit editor wrap wrapmode • • Arthur Araruna  

      3
      0
      Votes
      3
      Posts
      664
      Views

      Apparently it is virtually impossible to do what I want because the QTextBlock itself hardcodes a QTextLayout in its ::layout() method (see here). Moreover, it seems that every hook we could use is only available in the private classes... Now, the problem is that it prevents everybody wanting to implement custom behavior to create anything based on the QTextDocument and its associates. I wonder how the people who created text editors got away with this (probably implemented everything from scratch). Well, at the end, the only thing I found that could work was to manually insert unicode U+002028 (Line Separator) wherever I want using QTextCursor, which is terrible because everytime the editor area width changes I have to remove the old ones and insert new ones... As I'm not happy with the solution I found, I'll not mark this question as solved.
    • UNSOLVED Design questions for a simple level editor.
      General and Desktop • design editor design pattern noob level editor • • WetDesertRock  

      1
      0
      Votes
      1
      Posts
      359
      Views

      No one has replied

    • using pixmaps as an alternative to openPersistentEditor() in an itemView
      General and Desktop • model delegate view editor • • mortbopet  

      2
      0
      Votes
      2
      Posts
      758
      Views

      I'm doing something similar in sort of objects property tree. It works pretty well for large number of items. Definitely a massive win over a widget per item approach. One difference to your approach is that I don't use grab(), but instead have the editors created by the delegate a static drawing function that uses QStyle::drawControl and friends to draw an image of itself. This is because I don't want to instantiate all the editor widgets upfront to grab them (I have a bunch of them and it takes time). It's sort of a trade-off because it can get out of sync with the actual widget look. Whether this is something you'd be interested in or not is up to you, but the general idea of drawing an image is a valid one.
    • UNSOLVED Qtcreator left side of assignment snippet
      Tools • qtcreator editor shortcuts snippet • • statquant  

      3
      0
      Votes
      3
      Posts
      853
      Views

      @mrjj Yes exactly Now if it is: [ALongClassname::const_reverse_iterator ... = ] stuff.rbegin(); Is it more usefull ?
    • UNSOLVED Automatic left side of initialisation snippet
      General and Desktop • editor shortcuts snippet • • statquant  

      1
      0
      Votes
      1
      Posts
      385
      Views

      No one has replied

    • UNSOLVED [Solved] How can I enrich completion on a project with another project
      General and Desktop • editor completion • • statquant  

      5
      0
      Votes
      5
      Posts
      976
      Views

      Hi and welcome to devnet, The button you are seeking can be found clicking on the "Topic Tools" button :)
    • UNSOLVED Problem with pressing TAB key during QTableView cell edit
      General and Desktop • qtableview qt4.8 qitemdelegate editor tab • • Ben35  

      4
      0
      Votes
      4
      Posts
      3945
      Views

      I think i've found a solution. First, i install an eventFilter in my custom editor widget B on the internal spinbox : internalSpinbox->installEventFilter(this); Then, i implement eventFilter to treat the events on the spinbox and duplicate them to the parent: bool AbstractRatioQuantitySpinbox::eventFilter(QObject *object, QEvent *event) { // cf http://stackoverflow.com/questions/12145522/why-pressing-of-tab-key-emits-only-qeventshortcutoverride-event if (event->type() == QEvent::KeyPress) { auto keyEvent = static_cast<QKeyEvent *>(event); if (keyEvent->key() == Qt::Key_Tab || keyEvent->key() == Qt::Key_Backtab) { QApplication::postEvent( this, new QKeyEvent(keyEvent->type(), keyEvent->key(), keyEvent->modifiers())); return true; } } else if (event->type() == QEvent::FocusOut) { auto focusEvent = static_cast<QFocusEvent *>(event); QApplication::postEvent(this, new QFocusEvent(focusEvent->type(), focusEvent->reason())); return false; } return QWidget::eventFilter(object, event); }
    • SOLVED QT Editor to my SFML game
      General and Desktop • game editor sfml • • Felaugmar  

      3
      0
      Votes
      3
      Posts
      859
      Views

      @alex_malyu Thank you, I'll read more about this license.
    • SOLVED QItemDelegate with QTableWidget, access problem
      General and Desktop • qtablewidget qitemdelegate editor • • michelson  

      6
      0
      Votes
      6
      Posts
      2965
      Views

      QComboBox has a addItems where you can directly use your QStringList, so no need for the loops. And again, you should not use static_cast like that, use object_cast. You're lucky it's not crashing because you only handle column 1 where you know you create a QComboBox. You should move these two lines under the if protection.
    • Data structure to save diagram, an editor developed in QT widget
      General and Desktop • save data editor struct diagram • • Emysa341  

      1
      0
      Votes
      1
      Posts
      710
      Views

      No one has replied

    • SOLVED Kick start suggestions for Development of editor tool like MS Visio
      General and Desktop • editor tool shapes uml visio • • Emysa341  

      8
      0
      Votes
      8
      Posts
      3042
      Views

      @Emysa341 https://techbase.kde.org/Getting_Started/Sources Not sure KOffice is in there. Note it seems to be renamed to Calligra Flow https://community.kde.org/Calligra/Building/2