After reading this thread I still don't really know how to achieve this.
Could you short list the things what to do to achieve this?
I'm quite new to QtQuick,,,
Thank you,
Yeh that was kinda what I'd thought. Currently my workaround for this to get CMake generate a .pro file.
As long as I had the .pro file with contents such as:
@ set(QtPROHelper ${CMAKE_BINARY_DIR}/something.pro)
file(WRITE ${QtPROHelper} "#This File is Auto-Generated. Do Not Edit Manually.")
file(APPEND ${QtPROHelper} "\nQT += qml quick widgets")
file(APPEND ${QtPROHelper} "\nTARGET = something")
file(APPEND ${QtPROHelper} "\n\nRESOURCES += $$quote(${CMAKE_SRC_DIR}/resources.qrc)")
file(APPEND ${QtPROHelper} "\n\nOTHER_FILES += ")
foreach(VIEW_FILE ${VIEW_FILES})
file(APPEND ${QtPROHelper} "$$quote(${VIEW_FILE}) ")
endforeach()@
With just that I can open the project via the .pro when I need to work on the QML side of things and intellisense works fine. When I need to actually build the project/ work on the c++ side I just flip back to VisualStudio.
You could ofc go all out and add the LIBS and INCLUDEDIR and such to get the .pro to compile as well but it wasn't needed.
Please check out the "code wrapping section":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 in the forum help. This helps to make your code more readable in the forum.
Note that the table view is not really intended for spreadsheet type applications which is why I suspect you want the grid. You can easily create a grid by setting a custom itemDelegate and adding a 1 px tall rectangle at the bottom and a 1 pixel wide rectangle at the right hand corner.
It's right there in the post that you've quoted - go to TableView.qml {just write TableView {} and control-click on it and go or whatever} and add that line at the place mentioned. That was all a month back though - now deep into the project with the kind of complexity and customization that is needed for our desktop application we are dedicating some time for building most of the stuffs from scratch - Table/Tree views inclusive.
if I import "Main.qml" the file will not load at all (which means it thinks there is a syntax error I think)
if main.qml file does not start with a capital when you type main.mainLoader it does not recognise it as a property
if Main.qml starts with 'M', when you are in the username file typing "Main." the text changes colour and you get a list of properties including the mainLoader
????
I have tried this in a small test app and I get the same results
Hi,
I'm not sure I understood your question but if you give an id to your editors or if you know the indices of your tabs, you can call slots of your editor instances to perform specific actions in given editor. A slot is called like a javascript function: @myReference.calledFunction(args);@